<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

// 公共接口
require_once 'api/common.php';
// 管理后台
require_once 'api/admin.php';

Route::middleware('auth:api')->get('/user', function (Request $request) {
    return $request->user();
});

Route::get('/demo', 'DemoController@index');
